From 5059df0621301eb48b00fbec643e147e74b9fcd3 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 28 Oct 2008 10:36:22 +0000 Subject: [PATCH] hvm: Do not mess with APIC timer deadline if in one-shot mode. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/vpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c index d9730bf140..5dae7cd505 100644 --- a/xen/arch/x86/hvm/vpt.c +++ b/xen/arch/x86/hvm/vpt.c @@ -389,7 +389,7 @@ void create_periodic_time( * LAPIC ticks for process accounting can see long sequences of process * ticks incorrectly accounted to interrupt processing. */ - if ( pt->source == PTSRC_lapic ) + if ( !pt->one_shot && (pt->source == PTSRC_lapic) ) pt->scheduled += delta >> 1; pt->cb = cb; pt->priv = data; -- 2.30.2